﻿using System;
using System.Collections.Generic;
using System.Text;

using DBA.DataBaseAccess;

namespace BL.ServerBL
{
    public class DBConfigControl
    {
        public static void SetDBConfig(string dbserverip, string dbver)
        {
            SQLServerVer ver = SQLServerVer.EnterPrise;
            if (dbver == "Enterprise")
                ver = SQLServerVer.EnterPrise;
            else if (dbver == "Express")
                ver = SQLServerVer.Express;
            else if (dbver == "Develop")
                ver = SQLServerVer.Developer;
            DBAccess.SetDBConfig(dbserverip, ver);
        }

        public static void ReSetDBConfig()
        {
            DBAccess.SetDBConfig();
        }
    }
}
